'''
Created on 14 janv. 2013

@author: rouis
'''
class Player:
    
    def __init__(self, name):
        self.name = name
        self.score = 0
    
    def displayScore(self):
        print "The player :", self.name, " ,The Score :", self.score
        
    '''update the score of the player by adding points equals to the number of letters he used'''
    def addToScore(self, nbOfLetters):
        self.score += nbOfLetters 
        
    def get_score(self):
        return self.score
    
    def get_name(self):
        return self.name
    
    def set_score(self, score):
        self.score = score
    
    def set_name(self, name):
        self.name = name
        
        
        